//使用Node.js发起HTTP请求，接收HTTP响应消息
let url = 'https://www.codeboy.com/zhsqapi/user/login'

import axios from 'axios'

axios({
	url,
	method: 'POST',
	headers: {'Content-Type': 'application/json'},
	data: {phone:'13501234567', pwd:'123456'}
})
.then(res=>{
	console.log('接收到服务器返回的响应消息：', res.data)
})
.catch(err=>{
	console.log('请求服务器登录接口错误：', err)
})